#include "MainView.h"

MainView::MainView()
{
 
 maintenance = new MaintenancesView();
 option = 0;
                     
}

void MainView::show()
{

 utilities->printText("Welcome To Itla Library Management\n");
 utilities->printText("1. Maintenances\n");
 utilities->printText("2. Books Shop\n");
 utilities->printText("3. Exit\n");
 option = utilities->getInt("Choose The Option: ");
 
 switch(option)
{
    case 1: 
     maintenance->show();
     break;
     
     case 3:
        utilities->exit();            
}
}
